package com.config;

import com.bean.Car;
import com.dao.AnimeDao;
import com.dao.LoginDao;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author WZ
 * @version 1.0
 * @date 2021/8/30 17:47
 */

@Configuration
@EnableConfigurationProperties({Car.class})
//1开启Car配置绑定功能 2再把这个Car自动注册到容器中
public class MyConfig {

//<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
//        <property name="basePackage" value="com.dao"></property>
//    </bean>
//    @Bean
//	public MapperScannerConfigurer mapperScannerConfigurer(){
//		MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
//		mapperScannerConfigurer.setBasePackage("com.dao");
//		return  mapperScannerConfigurer;
//	}
}
